import { Column, Entity, PrimaryColumn } from 'typeorm';
import { PublicEntity } from './base/public.entity';

/**
 * 简历实体
 */
@Entity({ name: 'resume' })
export class ResumeEntity extends PublicEntity {
  @Column({ length: 36, comment: '简历id', unique: true })
  rid: string;

  @Column({ length: 32, comment: '简历名' })
  name: string;

  @Column({ type: 'tinyint', default: 0, comment: '简历类型: 0线上 1附件' })
  type: number;

  @Column({ type: 'tinyint', default: 2, comment: '学历: 0高中 1专科 2本科 3研究生' })
  degree: number;

  @Column({ length: 256, nullable: true, comment: '简历地址' })
  file: string;

  @Column({ length: 256, nullable: true, comment: '个人优势' })
  advantage: string;

  @Column({ length: 32, nullable: true, comment: '期望职位' })
  position: string;

  @Column({ length: 32, nullable: true, comment: '期望城市' })
  location: string;

  @Column({ length: 32, nullable: true, comment: '期望薪资' })
  salary: string;

  @Column({ length: 256, nullable: true, comment: '工作经历' })
  worked: string;

  @Column({ length: 256, nullable: true, comment: '项目经历' })
  project: string;

  @Column({ length: 36, comment: '用户id' })
  uid: string;
}
